home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI Driver Example 06⁄07 ƒ / UnitNtryCnt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-16  |  474 b   |  22 lines  |  [TEXT/MPS ]

  1. /*
  2.  * UnitNtryCnt is not defined in the Universal Headers.  This is a bug.
  3.  * We define it in our own include file, so that when the Universal
  4.  * Headers are corrected, we can remove this include file and everything
  5.  * will compile correctly.
  6.  *
  7.  * 940522    BL°B    Creation
  8.  */
  9.  
  10. #define    UnitNtryCnt    0x01D2
  11.  
  12. short    LMGetUnitEntryCount (void)
  13. {
  14.     return (*(short *)UnitNtryCnt);
  15. }
  16.  
  17. void    LMSetUnitEntryCount (short newUnitEntryCount)
  18. {
  19.     *(short *)UnitNtryCnt = newUnitEntryCount;
  20. }
  21.  
  22.